const MYSVIEW_SERVICE = '/res-center/map-view';
const SYS_USER_SERVICE = '/sys-user';

export default {
	initApi: (request) => {
		return {
			getApplicationConfiguration: (appId = '') => {
				return request({
					url: `${MYSVIEW_SERVICE}/application`,
					method: 'get',
					params: {
						id: appId
					}
				});
			},
			getUserButton: (appId = '') => {
				return request({
					url: `${SYS_USER_SERVICE}/user/buttons`,
					method: 'get',
					params: {
						id: appId
					}
				});
			}
		};
	}
};
